<?php
namespace app\api\validate;

use think\Validate;

class RechargeValidate extends Validate
{
    protected $rule = [
        'page' => 'integer',
        'limit' => 'integer',
        'money' => 'require|float',
    ];

    protected $message = [
        'page.integer' => '页码格式错误',
        'limit.integer' => '条数格式错误',
        'money.require' => '充值金额不能为空',
        'money.float' => '充值金额格式错误'
    ];

    protected $scene = [
        'getList' => ['page','limit'],
        'recharge' => ['money']
    ];
}
